<?php
namespace App\Console\Commands;

use App\Services\WebSocketService;
use Illuminate\Console\Command;

class StartWebSocketServer extends Command
{
    protected $signature = 'websocket:start';
    protected $description = 'Start WebSocket server';

    public function handle()
    {
        $this->info('Starting WebSocket server...');

        /** @var WebSocketService $websocket */
        $websocket = app('websocket');
        $websocket->start();
    }
}
